package com.zy.Conterller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class ForwordCont {
    //rest风格
    //分发器分发 jsp目录下 sys/role/index | sys=folder role=page
        @GetMapping("/{folder}/{page}/index")
        public String  index(@PathVariable("folder") String folder,@PathVariable("page") String page){
          return folder+"/"+page;
        }

    }
